package com.dhsc.local.dao.impl.wdywgl;

import com.dhsc.domain.ywzx.wdywgl.CsbmdVo;
import com.dhsc.local.dao.wdywgl.ICsbmdDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: CsbmdDaoImpl
 * @Description: 测试白名单
 * @date: 2023/12/1 11:34
 * @author: gx
 */
@Repository("csbmddao")
public class CsbmdDaoImpl implements ICsbmdDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<CsbmdVo> queryCsbmd(CsbmdVo csbmdVo) {
        return localSqlSessionTemplate.selectList("CsbmdMapper.queryCsbmd",csbmdVo);
    }

    @Override
    public int insertCsbmd(CsbmdVo csbmdVo) {
        return localSqlSessionTemplate.insert("CsbmdMapper.insertCsbmd",csbmdVo);
    }

    @Override
    public int deleteCsbmd(CsbmdVo csbmdVo) {
        return localSqlSessionTemplate.delete("CsbmdMapper.deleteCsbmd",csbmdVo);
    }

    @Override
    public int updateCsbmd(CsbmdVo csbmdVo) {
        return localSqlSessionTemplate.update("CsbmdMapper.updateCsbmd",csbmdVo);
    }

    @Override
    public CsbmdVo queryQxByJgdm(CsbmdVo csbmdVo) {
        return localSqlSessionTemplate.selectOne("CsbmdMapper.queryQxByJgdm",csbmdVo);
    }
}
